package com.amazon.shop.bean.dto;

import lombok.Builder;
import lombok.Data;
import org.springframework.boot.context.properties.bind.DefaultValue;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 创建时间：14:17 2021/1/25
 *
 * @author lzj
 * @since JDK 1.8.0_171
 * 类说明：
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ---------------------------------------------------------*
 */
@Data
public class EvaluateDTO extends BaseDTO {

    @NotNull(message="id不能为空",groups = BaseGroup.del.class)
    private Integer id;

    /**
     * 国家
     */
    @NotEmpty(message="国家不能为空",groups = BaseGroup.add.class)
    private String country;

    /**
     * 订单id
     */
    @NotEmpty(message="订单id不能为空",groups = BaseGroup.add.class)
    private String orderid;

    /**
     * 兑换码
     */
    @NotEmpty(message="兑换码不能为空",groups = BaseGroup.add.class)
    private String rcode;

    /**
     * 是否满意  0不满意 1满意
     */
    @NotNull(message="是否满意不能为空",groups = BaseGroup.add.class)
    private Integer satisfied;

    /**
     * 邮箱
     */
    @NotEmpty(message="邮箱不能为空",groups = BaseGroup.add.class)
    @Email
    private String evalemail;

    /**
     * 名称
     */
    @NotEmpty(message="名称不能为空",groups = BaseGroup.add.class)
    private String subname;


    /**
     * 0未发送 1发送
     */
    private Integer issend;


    private Integer storeid;

    private Long stime;
    private Long etime;


    private String refundamount;

    private String sku;

    private String disc;

    private String remark;


    private String mid;
}
